package com;

import com.config.BasesSource.DynamicDataSourceRegister;
import com.util.ContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;

@SpringBootApplication
//@ComponentScan(basePackages={"com.util"})
@Import({DynamicDataSourceRegister.class})
public class Application {
    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(Application.class, args);
        ContextUtil.setApplicationContext(app);
    }
}
